NDArray add-product! fix
improve scaling functions by pulling type casts outside loop
minor enhancements
minor optimisations for persistent vector equality
improve persistent vector access