added support for embedded structs in AssignUniforms

ref #4