fix case where paramater is array or callback in getClassName function