Fix Entity::toArray() not executing closures
0.9.1