Add more dimension assignment and casting test cases.