Fixed bug where macro code would check state of LinkableFunction before
validating it.