Finish all features and tests for deep_ptr and poly_ptr