Added experimental array support
Improved bool/string detection
Moved everything into cfg namespace
Improved/fixed/cleaned up some other things