Add support for derived_trait syntax

The traits to be derived are being parsed, but nothing is done with the
information yet.
Add derived_traits declaration as required

This has no effect in this commit, but it will keep the test working,
once derived_traits has been implemented.
Implement derived_traits
Fix compiler warning when no traits are derived