Refactored univariate to become array prototypes