Replaced ones method with ones_double.

The name of the ones method was changed to ones_double and additional methods one_<type> were added.