Fix pointer in for-loop used to build display list

* Added optional configuration for build with vertexArray, this is still
WIP.