Create factory function for TypeAttr objects.

Move the lookup-by-name from __init__ to the factory function.
Implement file type interface for Genfscon.
Implement file type criteria for GenfsconQuery.