These all share the use of a common helper function so are handled in one go. These builtins are also now vectorized.