Some refactoring of arrfunc
Removed arrfunc constructors that were causing trouble
Merge pull request #207 from izaid/fixes

Some fixes