forward-port of r1538333
plus lessons learnt from tiles-3.0.2 release


git-svn-id: https://svn.apache.org/repos/asf/tiles/framework/trunk@1538391 13f79535-47bb-0310-9956-ffa450edef68