fixed typed checking on structs
Merge branch 'master' of github.com:niketkandya/plt2013