Common: convert legacy GUI alignment on game load
Script: properly resolve static array for DirectPtr()

This is necessary, since Ptr may be a pointer to wrapping object (e.g. Array<T>) rather than C-array.
Refactored custom properties
Feature: set custom property values at runtime