Should be an array of refs; fix
Replace uri-helpers with https://gist.github.com/pjt33/efb2f1134bab986113fd
Rewrite cloneSchema() from scratch
Remove resolveReferences(); fixed here
Minor fixes for best compatibility
Fixed normalizeSchema() behavior
Fixed specs; almost passing id/refs (?)