Various tweaks and cleanups

- cleaned up includes in input components
- messed around with (and optimised...) qt_test (while learning how the
qt works in more detail)
- fixed delete should be delete[] errors. thanks microsoft analyser,
you're the greatest. Thumbs-up.
- fixed some compiler warnings