Remove names from boolean operator functions and use parameter instead.
Move private functions into private injection scope.
Improve testOnCurve() code.