Optimize away inefficiency in get_all_from_block(), add tests for it.