schema retrieval, Clean/Flatten order changed

schema is now retrieved early for any object (PATCH or POST).
CleanJSON and FlatJSON occur right after this (instead of after
determining PATCH or POST).