Implemented visitor to create Oop array instead of recursive function. Fixes #5