Added reset() to components and entities
Return empty array instead of null to not break loops