Fixed conversion from collection<Block> to Block[]