Issue #363 primitive arrays cause ClassCastException in eclipse 6.8.1 plugin

Issue #363 primitive arrays cause ClassCastException in eclipse 6.8.1 plugin. Added code fix and tests.