feature: Added some checks to class place.
bugfix: Fixed some compiling errors in GCC.