[SHIMLIB] Update helper functions, add ShimLib_StringNDuplicateA