full hinted multidim array from cgrand.net
various optims, to be continued
clean deps and fix require