XDDMCP fix prealloc check

The check for preallocation support in XDD didn't handle stdout
properly.  This patch fixes that and includes a test case for
hasPreallocate.