Fix Lab color mode with 3 channels. Add support for lab color mode with 4 channels.

Hi, Ronie, I am fail to find out what's wrong with your code, and as a result I use the code from github.com/alco/psdump. It seems no perfect comparing to the jpg file, but I have no idea with that.