Refined Ruby DTO Generator to do attribute type checking.