Fix build

Running tests on Linux produced missing dispose messages which causes
the build to be marked as unstable. This change adds the necessary
dispose call and also gets rid of unnecessary implementation of
IDisposable on Command and CommandSet classes.

Change-Id: I388ab1ce747ddbe92b3f3aba07cbf4243039b131