Force type check when assigning a custom attribute

PHP annoyingly considers an empty string equal to integer 0.

So WCPGSK often adds an empty pattern="" attribute to text fields which always fail.

This PR forces PHP to check the type of the value with the === operator.