base-model.xqy - Added param to filter-list-results to allow for custom hooks
domain.xqy - Fixed issue in abstract persistence when deleting object referencing value.
engine.json.xqy - Fixed json rendering issue and bug on rendering @type attribute
model-helper.xqy - Added options to support flattening references and made function signatures more consistent.