Update Primitives.java

Fix for "Unsupported data type 'java.lang.String'" issue occurred during MBean value reading.