Modifying ann.components.lua to use the same constructor as C++ ANN components, a table with fields