Return the Rake result in 'build' and 'clean' subcommands
Handle template instance in derived type definition

Add the support to template instance resides in derived type definition,
previously we can only support in procedures.