Changes default behaviour of toString method

Now when a class which does not override the toString method is
converted to a string, it will be rendered as '[object Name.Of.Class]'.