improve C_GetObjectSize
Merge pull request #28 from fxdupont/getobjectsize

improve C_GetObjectSize