Add warnings for undefined template args. Resolves #2.