Validating schema relationships, fixing return_as define on documents, misc other crap