Fix issue #148: typeof(T) was being translated incorrectly as an attribute constructor argument.
Add test provided by markusjohnsson.