Indonesia is expected to ratify a new criminal code, which includes penalising sex outside of marriage with a punishment of up to one year in jail.