[tests] Add test for regex constraint with required set to false and empty string value. Parser behavior is to bypass regex validator if an empty string value has been sent to an optional property.
[fix] Allow empty values for optional properties with regex constraints.
[fix] Don't modify incoming data if it's a function