DepthStencilState not setting the ReferenceStencil value

DepthStencilState was not setting ReferenceStencil which causes strange
results when using stencil masks with ReferenceStencil other than zero.
It now looks ok (similar to XNA) for my stencil shadow implementation.
Merge remote-tracking branch 'upstream/develop3d' into nkastBranch
Merge pull request #1173 from nkast/nkastBranch

DepthStencilState was not setting ReferenceStencil