Allows the developer to avoid instanceof operators when wishing to compress.
This will compress the given element based on it's type and the parent schema, allowing for references to be resolved.