Fix uninitialized value in surface item

Change-Id: I3a369d9d46dd95a361f3c3b1ee838237bf5141a5
Reviewed-by: Andrew Knight <andrew.knight@digia.com>
Reviewed-by: Andy Nichols <andy.nichols@digia.com>
Fix uninitialized value in generated code

Change-Id: Ied932604de63072cc3b5614c84c8ec34fd94c891
Reviewed-by: Andy Nichols <andy.nichols@digia.com>