ENH: allow as_blocks to take a copy argument (#9607)
closes #9607

Added copy argument in as_blocks. Defaults to True as per the original code.

Wrote test cases to check the copy=True and copy=False cases work.
