If a compile function (within a directive) returns a function, it is a post-link function. Closes: #2713