Up the max template size to 500MB. #3665.

Ideally we'll make this configurable at some point, but this seems
good enough for now.