Potential slowness in operands_and_partials

Started a new thread on Math library input checks like this: Math library input checks