Use correct type assertion for uint16 parameters (IDispatch.Invoke)

Fix for issue #32.