Add missing security classes
Fix IN slots counting bug

long[] and double[] is a reference, should only take 1 slots.
Catch only IOException in socket tests
Merge pull request #458 from PinZhang/pzhang/security-classes

Pzhang/security classes