Fixed some warnings in ObjectService (may reduce crashes)

This is the equivalent of not putting any constructors.