Reference Optimizations

Added Caching to references and removed location in xdmp:function call
for references
MODEL-INSTANCE

Added Support for caching instance so it can be used in same
transaction.  This usually occurs when you create an instance in same
transaction and want to also reference it.
Merge branch 'master' of https://github.com/nativelogix/xquerrail2.framework
Merge branch 'master' of https://github.com/nativelogix/xquerrail2.framework