added jasmine tests for array,function,object & regexp types, _identity now checks if any args supplied to function before doing checks