Documentation fixes for composer-plugin type

As documented in https://github.com/composer/composer/blob/master/doc/articles/custom-installers.md#composerjson:

> the type attribute must be composer-plugin.

Also a small syntax fix.