Fix WITH-clause scoping of inserts by analyzing query stmts in a child analyzer.

Change-Id: I5dac28b6f1ddda6d2b369aef273f977fc2d9aca2
Reviewed-on: http://gerrit.ent.cloudera.com:8080/3497
Reviewed-by: Alex Behm <alex.behm@cloudera.com>
Tested-by: jenkins
Reviewed-on: http://gerrit.ent.cloudera.com:8080/3503