Fix missing return value error check
Improve regularity of STObject and STArray [RIPD-448 and -544]