Return size from std.read
Fix generic type construction.