Added applyScalarFunctor functions to all structures for applying
functions like Math.floor to all elements.