fix statement generation; add test for dimension property