The 2 power-up fields issue is a bug, and since this is the first time this issue is being reported, then it will only be fixed on UniLogic 1.17
Furethermore, I see that your Main function contains a Local tag (maybe it is only for this example), but practically, we don't allow Function-In/Out or local tags in the start-up function.
As for the original issue,
It seems that there is another bug, related to the initialization of local strings (The initial value of local strings doesn't work), but instead of using an Initial value, you can just use "Store String" (at the first rung, for example) in your function, where the input is the Const value you want to give to that string (for example #"Hello"), and the output is the local string.
This explains the squares you got. The local strings remained with whatever the memory contained.
This issue will also be fixed only on UniLogic 1.17
Thank you for your reports.