Moved all operators not belonging to a type to the type of their first parameters.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
Merge pull request #42 from ddobrev/function_operators

Moved all operators not belonging to a type to the type of their first parameters