Fix: a minor bug in specializing const types;
Fix: a minor bug in handling const self parameter;
Change: some method signatures to use const parameter types.