swig: reorder shared_ptr definitions
change Whale Interface