Refactor vectorized arithmetical operations

This patch makes implementation of vectorized routines for another platform simpler.

This is a part of #1292, but I want this merged faster because the actual NEON merge will have to wait and don't want the new structure of this file to be overwritten in the meantime.