Added inherit argument to Metadata query functions.

This defaults to True (the old behaviour), causing metadata for base classes to be returned if none has been registered for the actual class in question. Passing False causes the lookup to fail if metadata has not been registered for the exact type in question.

Fixes #232.