Add missing security classes
Fix IN slots counting bug

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

Pzhang/security classes