Fix failing test cases because some entities are still in use after disposed

<h4>Summary</h4>

Originally in the two functions: InDynamoUnits and InHostUnits, the geometry to be converted will be disposed to prevent them to be disposed in a different thread. But this is causing some issues. Sometimes, when an old geometry is converted, it will be still in use after the conversion.

This submission is making changes not to call dispose on the geometry in the two functions. Instead, dispose will be called in the outside functions properly.

@ke-yu 
PTAL