Update GSONSerializer.java

Change visibility according to the discussion on issue #586