with_application now allows to override the application type.

Useful for derivative works.

[ skip ci ]