Copy constructor, clear() and more tweaks