Fixes #2790: AR dirty attributes are now properly handling numeric values