Fixed warnings and canReorder instance variable bug.

canReorder getter was missing; setter did useless assignment of passed parameter to itself. Also fixed various warnings I got when compiling with more restrictive warning build settings.