Ignore annotations when determining type

Code shamelessly stolen from @tamtatam. Test horribly hacked together by
your's truly.

Closes #6