refactor register() method

It now returns a list of unresolved $refs found in the registered schema.