Fix for the wrong assumption that all static 'expose' properties are String objects

see the comment on my commit