Remove unnecessary dispose and finalize methods

There are several empty dispose and finalize methods. These can be
removed since they don't do anything. Remove them and rely on the
default implementation.

Signed-off-by: Marcus Karlsson <mk@acc.umu.se>