t/issue305.t: add testcase for Encode subtypes #305

Also skip on 5.6