bulk: add windows to foreign arrays
bulk: fix bugs in source records
flow: add record copy example