If the code path for Numeric values are currently never traversed, then let's pull that out. The unit tests you've added should catch that regression.

Also, one small comment - the `then` clause for conditionals is optional, and doesn't match the rest of the Puppet code base. It helps keep the code base consistent to avoid optional syntax like this, so they should be removed.