Keep proper type for numbers

Fix: the recoverProperType function didn't check for numbers.