Fix issue with dropIndex/dropUnique generating invalid index names

Drop index commands were generating names such as `users_foo_bar_dropunique` since type was being used to generate names.

Updated dropIndexCommand to accept both command and type parameters.