added type parameter parsing to object declarations