Add input cleanup

[It casts to input type](https://github.com/waysome/waysome/blob/develop/src/objects/object.h#L56)