Wrap typeof(object)

Merge-friendly replacement for #4.