sgs: added error case on wrong type for prop/index procedures
sockets: resolved minor compilation compatibility issue