added function for accurate type comparisons

see: http://bonsaiden.github.io/JavaScript-Garden/#types.typeof
added function to optimize rules arrays / objects on module init