Refactor for parametrized Arrays. Float/Double support into arrays