Optimization to ToFloatArray method

ToFloatArray now “manually” copies each matrix element into an array
without doing as many property get calls or bounds checks.