Performance tweaks to FastStatementList and additional unit tests.