[trunk] additional checks for marker size inconsistency (fixes issue 363)
[trunk] add a check for illegal SCod value (fixes issue 400)