Updated get references to now pull full schema from internal function call (thereby preventing the issue where full schema may not have been defined elsewhere.

Don't know why i didn't do that before