Look up schema URIs regardless of whether they were suffixed with '#'

This is causing some occasional problems where schemas are referenced
with a trailing `#` but didn't declare themselves with one, or vice
versa.
Merge pull request #20 from brandur/brandur-root-invariant-store

Look up schema URIs regardless of whether they were suffixed with '#'