Fixes issue where layer model wasn't being updated in NSBFunctionView