fix: non-primitive types can not be used as element in collections