implement literal reader for types