PIM-1370 : The property unique must work for date and number attributes

Bug fix: [yes]
Feature addition: [yes]
Backwards compatibility break: [no]
Unit test passes: [yes]
Behat scenarios passes: [yes]
Checkstyle issues: [no]*
Fixes the following jira:
 - PIM-1370