Several fixes for GStreamer support

- Fixed width, height, fps and frame count queries
- Added related tests