Modelling Thin Film Dewetting on Structured Surfaces and Templates: Bifurcation Analysis and Numerical Simulations